package com.example.personalaccount.repository;

import com.example.personalaccount.entity.Clause;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ClauseRepository extends MongoRepository<Clause,String> {
    List<Clause> getClausesByOriginAccountAndUserId(String account,long userId);

    List<Clause> getClausesByDestinationAccountAndUserId(String account,long userId);

    List<Clause> getClausesByUserIdAndFuncContaining(long userId,String function);

    List<Clause> getClausesByUserId(long userId);
}
